//
//  NSDate+NNDateFormat.h
//  TestObjectProduct
//
//  Created by fangshufeng on 16/9/29.
//  Copyright © 2016年 fangshufeng. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSDate (NNDateFormat)

- (NSDate *)dayInTheFollowingMonth:(int)month;//获取当前日期之后的几个月
/**获取星期的字符串*/
+ (NSString *)stringWithWeek:(NSInteger)weekDayNum;

/**获取当月有几天*/
- (NSInteger)getNumberOfDaysInCurrentMonth;

/**输入对应的字符串yyyy-MM 获取天数*/
+ (NSInteger)numberOfDaysInCurrentMonthWithFormatStr:(NSString *)formaStr;

/**获取当前日期之后的几个天*/
- (NSDate *)getDayInTheFollowingDay:(int)day;

/**当月的第一天*/
- (NSDate *)getFirstDayOfCurrentMonth;
/**获取某个时间的年月日*/
- (NSDateComponents *)getYMDComponents;

//上一个月
- (NSDate *)dayInTheLastMonth;

//下一个月
- (NSDate *)dayInTheNextMonth;
@end
